namespace MessageBroker

import System.Collections

interface IBroker:
"""Description of Broker."""
	Subscriptions as Hashtable:
		get
		set
	SharedQueues as Hashtable:
		get
		set	
	def CreateSubscription(subscriptionName as string, subscriber as string) as Subscription	
	def Send(destination as string, message as Message)
	def MassiveSend(messages as IList, subscriber as string)
	def Receive(destination as string, subscriber as string) as Message
	def Receive(destination as string, subscriber as string, howMany as int) as IList
	def Receive(subscriber as string, howMany as int) as IList

